﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="INavigator.cs" company="Marcin Jastrzebski">
//   Copyright (c) Marcin Jastrzebski (marcin@marcinj.net)
// </copyright>
// <summary>
//   The Navigator interface.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace mPassRT.Services
{
    using System;

    /// <summary>The Navigator interface.</summary>
    public interface INavigator
    {
        #region Public Methods and Operators

        /// <summary>Navigates back.</summary>
        void GoBack();

        /// <summary>Navigates to the specified page with the specified parameter.</summary>
        /// <param name="pageType">The page type.</param>
        /// <param name="parameter">The parameter.</param>
        /// <typeparam name="T">parameter type</typeparam>
        /// <returns>True if successful; false otherwise.</returns>
        bool NavigateTo<T>(Type pageType, T parameter) where T : class;

        #endregion
    }
}